	#addi $t3,$zero, 0x80000000
	#lw $t2,period # $t2 = period

	# first 16 bits are high for memory mapped IO
	lui $t0, 0xFFFF
	
loop:	
	# load switch
	
	# load contents of switch
	# A = 0xFFFF ( $1 )
	# B = 000000
	# X = 0001 - switch?
	# C = 0000 - address - select switch
	# D = 00
	lw $t1 , 0x0040($t0)

	sw $t1 , 0x0000($t0) # write switches to leds

		
	#and write that to i2s
	# A = 0xFFFF ( $1 )
	# B = 000000
	# X = 0111 - i2sOutput?
	# C = 0000 - address - select switch
	# D = 00
#	addi $t2, $0, 1
	sw $t1 , 0x01C0($t0)
	
endloop: j loop
